package com.model;

public class Card {

	private Suit suit;
	private Rank rank;
	
	public Card(Suit suit, Rank rank) {
		this.suit = suit;
		this.rank = rank;
	}
	public Suit suit() {
		return suit;
	}
	public Rank rank() {
		return rank;
	}
	public int getValue() {
		return rank.value;
	}
	public String getSymbol() {
		return rank.symbol;
	}
	public String toString() {
//		return suit.name() +" "+ rank.name();
		//return suit.symbol +" "+ rank.name();
		return suit.symbol + rank.symbol;
	}
	public String toSymbol() {
		return suit.symbol + rank.symbol;
	}

}
